package com.woniuxy.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.woniuxy.entity.Focus;
import com.woniuxy.entity.User;

@Mapper
public interface FocusDao {

	List<Focus> findFocus(long fid);

	void cancel(long id);

	Focus getCertainFocus(@Param("focusFromId")long id, @Param("focusToId")long id2);

	void updateFocusStatus(@Param("focusFromId")long id2, @Param("focusToId")long id,@Param("focusStatus")String status);

	int getFriendsNum(long id, String stauts);

	List<User> getFriendsByPage(long id, String status, int i, int pagesize);

	public String getFocusStatus(long fid,long tid);

	int getFocusMeNum(long id);

	List<User> getFocusMeByPage(long id, int i, int pagesize);

	List<Focus> getFocusByPage(long id, int i, int pagesize);

	int getFocusNum(long id);

	void addFocus(Focus focus);
}
